package com.dkm.orproject.dkmoa.dao;

import com.dkm.orproject.dkmoa.domain.OaCar;
import com.dkm.orproject.dkmoa.domain.OaVote;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OaCarMapper {
    int deleteByPrimaryKey(Long pkCarId);

    int insert(OaCar record);

    int insertSelective(OaCar record);

    OaCar selectByPrimaryKey(Long pkCarId);

    int updateByPrimaryKeySelective(OaCar record);

    int updateByPrimaryKey(OaCar record);

    List<OaCar> findAll(@Param("carName") String carName, @Param("startDate")String startTime,@Param("endDate") String endTime);

    Long rowCount(@Param("carName")String carName,@Param("startDate") String startTime,@Param("endDate") String endTime);

    List<OaCar> selectAll(List<Long> list);

    int deleteAll(List<Long> list);
}